package demo02;

public class User {

    private String UserName;
    private double leftMoney;

    public String getUserName() {
        return UserName;
    }

    public void setUserName(String userName) {
        UserName = userName;
    }

    public double getLeftMoney() {
        return leftMoney;
    }

    public void setLeftMoney(double leftMoney) {
        this.leftMoney = leftMoney;
    }

    public User() {

    }
    public void show(){
        System.out.println("我叫："+UserName+",我的余额是："+leftMoney);
    }

    public User(String userName, double leftMoney) {
        UserName = userName;
        this.leftMoney = leftMoney;
    }

}
